package com.dmooo.yxmmerchant.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dmooo.yxmmerchant.R;
import com.dmooo.yxmmerchant.domain.BalanceRecordBean;

import java.util.List;

public class MyBalanceRecordAdapter extends BaseQuickAdapter<BalanceRecordBean.Item, BaseViewHolder> {
    public MyBalanceRecordAdapter(int layoutResId, @Nullable List<BalanceRecordBean.Item> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BalanceRecordBean.Item item) {
        helper.setText(R.id.txt_desc,item.action_zh);
        helper.setText(R.id.txt_money,item.action_symbol+item.money);
        helper.setText(R.id.txt_time,item.create_time);
        helper.setText(R.id.txt_order_num,"订单编号: "+item.order_num);
        helper.setText(R.id.txt_all_money,"余额: "+item.merchant_balance);
    }
}
